home *** CD-ROM | disk | FTP | other *** search
- -- sharedStartMovie
-
- global firsttime
- global lasttime
- global GSFpathname
-
- on sharedStartMovie
-
- -- This is called by one parent movie, here called "StarFest.Dir"
-
- -- Reset everything
- set the mouseDownScript to EMPTY
- set the mouseUpScript to EMPTY
-
- -- Assign globals
- set firsttime = 0
-
- --showGlobals
-
- -- Disallow the user from quitting to finder without going
- -- through the presumed exit handler
- --set the exitLock to TRUE
-
- if( firsttime = 0) then -- i.e. firsttime is uninited
-
- set firsttime = 1 -- will not make another handler
-
- -- Check for MacOS version
- -- checkMacOSVersion()
-
- -- Check for JLK version
- -- checkJLKVersion()
-
- -- Check for QT version on Mac only
- -- if ( the machineType <> 256 ) then
- -- checkQtVersion()
- -- end if
-
- -- Check for color depth
- checkColorDepth()
-
- else -- firsttime not 0, second time
- nothing
- end if -- firsttime test
-
- -- lasttime should be set to zero for a movie that expects to
- -- play another
- set lasttime = 0 -- will not remove handler on stop movie
-
- set GSFpathname = the pathname
- initFieldNotes()
-
-
- end sharedStartMovie
-
- ------------------------------------------------------------------------
-
- --on checkQtVersion
- -- global gUserDepth
- --
- -- -- "OpenXLib" is needed if the XFCN is NOT installed in the
- -- -- resource fork of the movie using ResEdit.
- -- OpenXLib the pathName & "QTVersion.XFCN"
- --
- -- set vsnString = QTVersion()
- --
- -- put
- -- set outString1 = "Your QuickTime version is" && vsnString
- --
- -- set outString2 = "version"
- -- set outStringW = outString2 && "2.1"
- --
- -- set iversion = integer(chars(vsnString,1,1))
- -- set csubvrsn = chars(vsnString,3,3)
- -- if ((iversion < 2 ) or ((iversion = 2 ) and not (( csubvrsn = "1") or ( csubvrsn = "5" )))) then
- --
- -- set outString3 = outString1 & ". StarFest requires" && outStringW && ¬
- -- "or later. Please find QT 3 on the CD and install it." ¬
- -- & RETURN & RETURN && "StarFest will exit on OK."
- -- alert ( outString3 )
- -- set the colorDepth to gUserDepth
- -- quit
- --
- -- else
- -- put outString1
- -- end if
- --
- -- -- "CloseXLib" is needed if the XFCN is NOT installed in the
- -- -- resource fork of the movie using ResEdit.
- -- CloseXLib the pathName & "QTVersion.XFCN"
- --
- --end checkQtVersion
-
- ------------------------------------------------------------------------
-
- on checkColorDepth
- global gUserDepth
- set gUserDepth = the colorDepth
- -- Note Lingo dict:"When you assign a monitor a colorDepth higher than
- -- the monitor's color depth, the monitor becomes set to its maximum
- -- color depth."
- if ( the colorDepth <> 16 ) then
- alert ( "StarFest is attempting to set your monitor's color depth " & ¬
- "to 16 bits (Thousands)." & RETURN & RETURN & ¬
- "It will be returned to the original depth upon exit." )
- set the colorDepth to 16
- end if
- -- exit
- end checkColorDepth
-
- ------------------------------------------------------------------------
-
- on sharedStopMovie
- global gUserDepth
- put "SHAREDSTOP lasttime" &&lasttime
- -- lasttime should be set to zero for a movie that expects to
- -- play another
- if lasttime = 1 then
-
- set the colorDepth to gUserDepth
-
- end if
-
- end sharedStopMovie
- ------------------------------------------------------------------------
-
- on mailHandler
-
- puppetSound "plop"
-
- set the visible of sprite 34 = 1
- updateStage
-
- when timeout then nothing
-
- end
- --
-